#include<stdio.h>
struct calculation
{
    int sum;
    int sub;
    int mult;
    float div;
};
main()
{
    int a=10,b=5;
    struct calculation *ptr,p;
    p.sum=a+b;
    ptr=&p;
    printf("the sum is %d\n",ptr->sum);
    p.sub=a-b;
    ptr=&p;
    printf("the sub is %d\n",ptr->sub);   
    p.mult=a*b;
    ptr=&p;
    printf("the multiplication is %d\n",ptr->mult);
    p.div=a/b;
    ptr=&p;
    printf("the division is %f\n",ptr->div);
}
        
